﻿using DataAccess;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace KhoaLuan.MainSys.Controls
{
    public partial class ctViewIntroduce : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int s = int.Parse(Request.QueryString["IntroID"]);
                tbIntroduce_Proxy proxy = new tbIntroduce_Proxy();
                tbIntroduce intro = new tbIntroduce();
                intro = proxy.GetById_tbIntroduce_Proxy(s).ToObject<tbIntroduce>();
                if (intro != null)
                {
                    lbTieuDe.Text = intro.Title;
                    lbNoiDung.Text = HttpUtility.HtmlDecode(intro.ContenIntroduce);
                }

            }
        }
    }
}